package com.fa4j.system.app.model;


import com.fa4j.common.base.model.CommonState;
import com.fa4j.common.base.model.PageQuery;
import com.fa4j.common.data.annotation.Query;
import com.fa4j.common.data.model.QueryType;
import com.fa4j.common.web.model.AppType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "系统应用角色分页查询参数")
public class AppRoleQuery extends PageQuery {

    @Schema(description = "主键")
    private Integer id;

    @NotNull
    @Schema(description = "应用类型")
    private AppType appType;

    @Query(type = QueryType.LIKE)
    @Schema(description = "角色名称")
    private String name;

    @Query(type = QueryType.LIKE)
    @Schema(description = "角色编码")
    private String code;

    @Schema(description = "角色状态")
    private CommonState state;


}
